package com.ruoyi.system.mapper;

import java.util.List;
import java.util.Optional;

import org.apache.ibatis.annotations.Param;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * 用户表 数据层
 * 
 * @author ruoyi
 */
@Repository
public interface SysUserMapper extends MongoRepository<SysUser,Long>
{


//    Page<SysUser> findByUserName(String userName, Pageable pageable);

    // 通过用户名查询用户
    SysUser findByUserName(String userName);

    SysUser findByUserId(Long userId);

    void deleteAllByUserId(Long[] userIds);



//    void updateUserProfile(SysUser user);
}
